/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.negocio;

import java.util.List;
import model.beans.Horario;
import model.dao.HorarioDAO;

/**
 *
 * @author Juliane Chaerki
 */
public class HorarioNegocio {
    public HorarioNegocio(){}
    
      public List<Horario> listarHorario(){
        try {
            HorarioDAO dao = new HorarioDAO();
            List<Horario> lista = dao.listarHorario();
            return lista;
        } catch (Exception e) {
            return null;
        }
    }
    
    
}
